import requests
from fake_useragent import UserAgent

url = 'https://bscdnct.inter.71edge.com/videos/v0/20241203/80/bb/177eb9ef056c25fca0cf36846a542f42.265ts?key=0c74a3bfa1af79006af155cf80f16c762&dis_k=9784d0ab8a43cdb1bd63986d0e33877d&dis_t=1743578558&dis_dz=CT-Shan3Xi_XiAn&dis_st=141&src=iqiyi.com&dis_hit=0&dis_tag=01010000&uuid=75247698-67ece5be-3e8&hotlevel=25&qd_k=203da189338d3218a0d297a0deb6a112&vcodec=1&qyid=24f6e768609cbb836506a8aaa40eb9ce&fr=25&end=24552424&pv=0.1&start=0&cpt=3&qd_src=01010031010000000000&qd_tm=1743578558500&qd_sc=1205e51a4d17e40aded965db110ca53e&contentlength=24552424&bid=500&qd_p=75247698&qd_tvid=1436378223223300&cid=35&ssl=1&qd_index=vod&qd_vip=0&dis_src=vrs&sd=0&qd_vipres=0&qd_uid=0&cphc=arta&stauto=0&ori=1&num=1743578577512'

headers = {
    'User-Agent': UserAgent().random
}

response = requests.get(url, headers=headers)

with open("wangju.mp4", "wb") as f:
    f.write(response.content)
